package cc.abanlee.module.system.controller.admin.demo.service;

import com.google.common.collect.HashMultimap;
import com.google.common.collect.Multimap;

import java.util.Collection;

/**
 * @author: create by
 * @version: v1.0
 * @description:
 * @date:2022/9/5
 */
public class DemoService {

    public static void main(String[] args) {

        Multimap<String,String> map= HashMultimap.create();

        map.put("A","a");
        map.put("A","b");
        map.put("A","c");
        map.put("X","x");
        map.put("X","y");
        map.put("X","z");


        Collection<String> a = map.get("A");
        Object[] objects = a.toArray();

        String[] strings = a.toArray(new String[0]);
        System.out.print(objects);

    }

}
